home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / kerberos / pc / krb_libk.lha / Lib / KRB / GETTFRLM.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-24  |  878 b   |  37 lines

  1. /*
  2.  * $Source: /afs/athena.mit.edu/astaff/project/kerberos/src/lib/krb/RCS/get_tf_realm.c,v $
  3.  * $Author: jtkohl $
  4.  *
  5.  * Copyright 1987, 1988 by the Massachusetts Institute of Technology.
  6.  *
  7.  * For copying and distribution information, please see the file
  8.  * <mit-copyright.h>.
  9.  */
  10.  
  11. #ifndef lint
  12. static char rcsid_get_tf_realm_c[] =
  13. "$Id: get_tf_realm.c,v 4.2 90/01/02 13:40:19 jtkohl Exp $";
  14. #endif /* lint */
  15.  
  16. #include <mit_copy.h>
  17. #include <krb.h>
  18. #include <string.h>
  19.  
  20. /*
  21.  * This file contains a routine to extract the realm of a kerberos
  22.  * ticket file.
  23.  */
  24.  
  25. /*
  26.  * krb_get_tf_realm() takes two arguments: the name of a ticket 
  27.  * and a variable to store the name of the realm in.
  28.  * 
  29.  */
  30.  
  31. krb_get_tf_realm(ticket_file, realm)
  32.   char *ticket_file;
  33.   char *realm;
  34. {
  35.     return(krb_get_tf_fullname(ticket_file, (char*)0,(char*)0, realm));
  36. }
  37.